package com.tbit.uqbike.client.service.impl;

import com.tbit.uqbike.client.dao.core.EventDetailDao;
import com.tbit.uqbike.client.pojo.EventDetail;
import com.tbit.uqbike.client.service.EventDetailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * @Author: chen
 * @Description:
 * @Date: 创建于 15:42 2022/5/11
 */
@Service
public class EventDetailServiceImpl implements EventDetailService {

    @Autowired
    private EventDetailDao eventDetailDao;

    @Override
    public List<EventDetail> getByEventId(Integer inviteId) {
        return eventDetailDao.getByEventId(inviteId);
    }

    @Override
    public List<EventDetail> getByType(Integer inviteId, List<Integer> list) {
        Map<String, Object> param = new HashMap<>();
        param.put("inviteId", inviteId);
        param.put("typeList", list);
        return eventDetailDao.getByType(param);
    }
}
